The following patch removes every (hopefully) reference to network-limit.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 16 Nov 2005 10:31:57 +0000 (11:31 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 16 Nov 2005 10:31:57 +0000 (11:31 +0100)
Upon further investigation it sets Device parameters that don't exist any
longer, thus causing exceptions.  As it looks like this is completely
obsolete, and no one is actively working on it, we should just rip it out to
end the confusion.

Signed-off-by: Sean Dague <sean@dague.net>
docs/man/xm.pod.1
tools/python/xen/xend/XendClient.py
tools/python/xen/xend/XendDomain.py
tools/python/xen/xm/main.py

index b0b57f12f5986226123dd1dc12072b6157a0f8b5..7f34196220ede1ca08fd5b44984ac925cba12c46 100644 (file)
@@ -645,10 +645,6 @@ I<[mac=macaddr]> I<[bridge=bridge-name]> I<[backend=bedomain-id]>
 
 =item B<network-detach> I<domain-id> I<devid>
 
-=item B<network-limit> I<domain-id> I<vif> I<credit> I<period>
-
-Limit the transmission rate of a virtual network interface.
-
 =item B<network-list> I<domain-id>
 
 List virtual network interfaces for a domain.  The returned output is
index 6af92beec74aa21cd97846008916c2e6c7ca7e33..75a106ad54e5777c0ab4464ef60ecd44d805d1d9 100644 (file)
@@ -302,13 +302,6 @@ class Xend:
                             {'op'    : 'set_vcpus',
                              'vcpus' : vcpus })
 
-    def xend_domain_vif_limit(self, id, vif, credit, period):
-        return self.xendPost(self.domainurl(id),
-                            { 'op'      : 'vif_limit_set',
-                              'vif'     : vif,
-                              'credit'  : credit,
-                              'period'  : period })
-
     def xend_domain_devices(self, id, type):
         return self.xendPost(self.domainurl(id),
                              {'op'      : 'devices',
index a429852788c7be0a18d782647aa889ba042fec0c..d6173081ab94abe704a2754d2e44aaa86bd79aa0 100644 (file)
@@ -467,17 +467,6 @@ class XendDomain:
         except Exception, ex:
             raise XendError(str(ex))
 
-
-    def domain_vif_limit_set(self, domid, vif, credit, period):
-        """Limit the vif's transmission rate
-        """
-        dominfo = self.domain_lookup(domid)
-        dev = dominfo.getDevice('vif', vif)
-        if not dev:
-            raise XendError("invalid vif")
-        return dev.setCreditLimit(credit, period)
-
-
     def domain_maxmem_set(self, domid, mem):
         """Set the memory limit for a domain.
 
index fc0521fe3fff8cb879b746170d3fef0c26214d10..f3fd00f6d92e2b046b52877d4075a6b3badfbaeb 100644 (file)
@@ -118,8 +118,6 @@ xm full list of subcommands:
         Create a new virtual network device 
     network-detach  <DomId> <DevId>  Destroy a domain's virtual network
                                      device, where <DevId> is the device ID.
-    network-limit   <DomId> <Vif> <Credit> <Period>
-        Limit the transmission rate of a virtual network interface
     network-list    <DomId>        List virtual network interfaces for a domain
 
   Vnet commands:
@@ -557,13 +555,6 @@ def xm_log(args):
     from xen.xend.XendClient import server
     print server.xend_node_log()
 
-def xm_network_limit(args):
-    arg_check(args,4,"network-limit")
-    dom = args[0]
-    v = map(int, args[1:4])
-    from xen.xend.XendClient import server
-    server.xend_domain_vif_limit(dom, *v)
-
 def xm_network_list(args):
     arg_check(args,1,"network-list")
     dom = args[0]
@@ -716,7 +707,6 @@ commands = {
     # network
     "network-attach": xm_network_attach,
     "network-detach": xm_network_detach,
-    "network-limit": xm_network_limit,
     "network-list": xm_network_list,
     # vnet
     "vnet-list": xm_vnet_list,
@@ -739,7 +729,6 @@ for c in subcommands:
 aliases = {
     "balloon": "mem-set",
     "vif-list": "network-list",
-    "vif-limit": "network-limit",
     "vbd-create": "block-create",
     "vbd-destroy": "block-destroy",
     "vbd-list": "block-list",